const base = 'log.pv';

/**
 * 获取订单列表
 * @param {*} param0
 * @returns
 */
// eslint-disable-next-line no-shadow
export function search({ pg, search }) {
  return RSocket.rs({
    route: `${base}.search`,
    args: {
      pg: { ...pg },
      search: {
        ...search,
      },
    },
  });
}

/**
 * 获取订单数量
 * @param {*} param0
 * @returns
 */
// eslint-disable-next-line no-shadow
export function count({ search }) {
  return RSocket.rr({
    route: `${base}.search.count`,
    args: {
      search: {
        ...search,
      },
    },
  });
}
